package one.stand.mapper;

import one.stand.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface UserMapperExt extends UserMapper {
    String selectNickeName(String[] ids);

    User selectByPhone(@Param("phone") String phone, @Param("companyId") Integer companyId);

    User selectByUnionid(@Param("unionid") String unionid);

    User selectByThirdUserOpenId(@Param("thirdUserOpenId") String thirdUserOpenId);

    User selectByUserOpenId(@Param("openId") String openId);

    User selectByCrmOpenId(@Param("openId") String openId);

    List<User> selectIm();

    Integer selectMaxId();

    List<Integer> selectByCompanyIds(@Param("companyIds") String companyIdsStr);

    void insetBakData(@Param("userId")Integer userId);

    List<User> selectErrorUser(@Param("openId") String openId);

    List<Integer> selectChatNull();

    List<User> selectWXPhoto();
}